import request from "@/utils/request";

/**查询提现记录列表*/
export const recordList = (params) => {
  return request({
    url: "/system/record/list",
    method: "get",
    params,
  });
};

/**获取提现记录详细信息 */
export const recordId = (id) => {
  return request({
    url: `/system/record/${id}`,
    method: "get",
  });
};

/**导出提现记录列表 */
export const recordExport = (data) => {
  return request({
    url: "/system/record/export",
    method: "post",
    data,
  });
};

/**修改提现记录 */
export const systemRecord = (data) => {
  return request({
    url: "/system/record",
    method: "put",
    data,
  });
};

/**提现审核 */
export const recordAudit = (data) => {
  return request({
    url: "/system/record/audit",
    // method: "post",
    method: "get",
    data,
  });
};

/**删除提现记录 */
export const recordDelete = (params) => {
  return request({
    url: `/system/record/${ids}`,
    method: "delete",
  });
};

/**统计*/
export const withdrawStatistics = (params) => {
  return request({
    url: "/system/record/withdrawStatistics",
    method: "get",
    params,
  });
};

/**通过*/
export const pass = (data) => {
  return request({
    url: `/system/record/pass`,
    method: "post",
    data,
  });
};

/**提现审核驳回*/
export const reject = (data) => {
  return request({
    url: `/system/record/reject`,
    method: "post",
    data,
  });
};

/**已打款*/
export const remittance = (data) => {
  return request({
    url: `/system/record/remittance`,
    method: "post",
    data,
  });
};

/**异常*/
export const error = (data) => {
  return request({
    url: `/system/record/error`,
    method: "post",
    data,
  });
};
